package OOday01;
/* car类的测试类*/
public class CarTest {
    public static void main(String[] args) {
        Car bm=new Car();
        bm.brand = "宝马";
        bm.color = "白";
        bm.price = 600000;
        bm.capacity = 5;

        bm.start();
        bm.run();
        bm.stop();

        Car ad=new Car();
        ad.brand="奥迪";
        ad.color="银";
        ad.price=500000;
        ad.capacity=5;

        ad.start();
        ad.stop();
        ad.run();

//1创建了一个汽车对象2.给所有变量赋值默认值
        Car bc=new Car();
        bc.run();
        bc.stop();
        bc.start();

        Car at=new Car("奥拓","黑",400000,6);{
    }
}
}
